//
//  Decorator.m
//  LearnObjectiveC
//
//  Created by client on 2017/9/11.
//  Copyright © 2017年 吴可高. All rights reserved.
//

#import "Decorator.h"

@implementation Decorator
@synthesize source;

-(void)setSource:(DecoratorSource *)newSource
{
    source = newSource;
}
-(DecoratorSource *)source
{
    return source;
}

-(void)method
{
    NSLog(@"before decorater");
    [source method];
    NSLog(@"after decorater");
}

@end
